<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : ContasAPagar
    Created on : 02/06/2009, 14:57:29
    Author     : Fm
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="/view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$ContasAPagar.panelLayoutLogo_action}" binding="#{view$ContasAPagar.panelLayoutLogo}"
                                id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Fim - Painel Cabeçalho -->
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="rave-layout: grid" styleClass="titulo contas_pagar">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" styleClass="pnVoltar">
                                <ice:commandButton action="#{view$ContasAPagar.btn_voltar_action}" binding="#{view$ContasAPagar.btn_voltar}" id="btn_voltar"
                                    image="/resources/images/btn/voltar.png" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca barraConta">
                            <!-- CampoABuscar  -->
                            <ice:selectOneRadio binding="#{view$ContasAPagar.buscaFinal}" id="buscaFinal" styleClass="entradaTxt"
                                value="#{view$ContasAPagar.selectOneRadio1Bean.selectedObject}" valueChangeListener="#{view$ContasAPagar.buscaFinal_processValueChange}">
                                <f:selectItems binding="#{view$ContasAPagar.selectOneRadio1selectItems}" id="selectOneRadio1selectItems" value="#{view$ContasAPagar.selectOneRadio1DefaultItems}"/>
                            </ice:selectOneRadio>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{view$ContasAPagar.tabelaContas}" id="tabelaContas" rows="10"
                                        value="#{view$ContasAPagar.dataTable1Model1}" var="currentRow">
                                        <ice:column id="column4">
                                            <h:commandLink action="#{view$ContasAPagar.linkAction1_action}" id="linkAction1" value="#{currentRow.codConta}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText8" value="Cod."/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column7">
                                            <ice:outputText id="outputText13" value="#{currentRow.vencimento}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText15" value="Vencimento"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column5">
                                            <ice:outputText id="outputText9" value="#{currentRow.descricao}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText10" value="Descrição"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <ice:column id="column6">
                                            <ice:outputText id="outputText11" value="#{currentRow.valorConta}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText12" value="Valor"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup2" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaContas_firstPageAction}"
                                                    binding="#{view$ContasAPagar.tabelaContasFooterFirstButton}" id="tabelaContasFooterFirstButton"
                                                    immediate="true" value="|&lt;"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaContas_previousPageAction}"
                                                    binding="#{view$ContasAPagar.tabelaContasFooterPreviousButton}" id="tabelaContasFooterPreviousButton"
                                                    immediate="true" value="&lt;-"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaContas_nextPageAction}"
                                                    binding="#{view$ContasAPagar.tabelaContasFooterNextButton}" id="tabelaContasFooterNextButton"
                                                    immediate="true" value="-&gt;"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaContas_lastPageAction}"
                                                    binding="#{view$ContasAPagar.tabelaContasFooterLastButton}" id="tabelaContasFooterLastButton"
                                                    immediate="true" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                    <ice:dataTable binding="#{view$ContasAPagar.tabelaNf}" id="tabelaNf" rows="10" value="#{view$ContasAPagar.dataTable1Model}" var="currentRow">
                                        <ice:column id="column1">
                                            <h:commandLink action="#{view$ContasAPagar.linkAction2_action}" binding="#{view$ContasAPagar.linkAction2}"
                                                id="linkAction2" value="#{currentRow.nfEntrada.numeroNFEntrada}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Num. NF. Entrada"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <ice:column id="column2">
                                            <ice:outputText id="outputText3" value="#{currentRow.numParcela}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Num. Parcela"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column3">
                                            <ice:outputText id="outputText5" value="#{currentRow.dataVencimento}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Data Vencimento"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="header"/>
                                        <ice:column id="column8">
                                            <ice:outputText id="outputText1" value="#{currentRow.valorParcela}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText16" value="Valor"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaNfFooterFirstButton_action}"
                                                    binding="#{view$ContasAPagar.tabelaNfFooterFirstButton}" id="tabelaNfFooterFirstButton" value="|&lt;"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaNfFooterPreviousButton_action}"
                                                    binding="#{view$ContasAPagar.tabelaNfFooterPreviousButton}" id="tabelaNfFooterPreviousButton" value="&lt;-"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaNfFooterNextButton_action}"
                                                    binding="#{view$ContasAPagar.tabelaNfFooterNextButton}" id="tabelaNfFooterNextButton" value="-&gt;"/>
                                                <ice:commandButton action="#{view$ContasAPagar.tabelaNfFooterLastButton_action}"
                                                    binding="#{view$ContasAPagar.tabelaNfFooterLastButton}" id="tabelaNfFooterLastButton" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <ice:panelTabSet binding="#{view$ContasAPagar.painelBuscarContaAPagar}" id="painelBuscarContaAPagar" selectedIndex="1"
                                    styleClass="pnTabSet" tabPlacement="Top">
                                    <ice:panelTab binding="#{view$ContasAPagar.aba01}" id="aba01" label="Nota Fiscal">
                                        <ice:panelLayout id="conteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--ID -->
                                                <ice:outputLabel id="Cod" styleClass="rotulo" value="Cód."/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoCodigoNota}" id="campoCodigoNota" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt"/>
                                                <!--Numero da Nota-->
                                                <ice:outputLabel id="tx_numeroNota" styleClass="rotulo" value="Número da Nota: "/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoNumeroNota}" id="campoNumeroNota" partialSubmit="true"
                                                    readonly="true" onkeypress="mascara(this,valor)" styleClass="entradaTxt"/>
                                                <!--Data de Emissão -->
                                                <ice:outputLabel id="tx_dataEntrada" styleClass="rotulo" value="Data de Entrada: "/>
                                                <ice:selectInputDate binding="#{view$ContasAPagar.dataEntrada}" id="dataEntrada"
                                                    inputTitle="Data de Realização do Orçamento." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt" value="#{view$ContasAPagar.selectInputDateBean6.date1}"/>
                                                <ice:outputLabel id="Fornecedor" styleClass="rotulo" value="Fornecedor:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoFornecedor}" id="campoFornecedor" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt"/>
                                                <ice:outputLabel id="txValorTotalParcela" styleClass="rotulo" value="Valor Parcela:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoValorTotalParcela}" onkeypress="mascara(this,valor)" id="campoValorTotalParcela"
                                                    partialSubmit="true" styleClass="entradaTxt" title="Valor Total Parcela"/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Qtidade Parcelas-->
                                                <ice:outputLabel id="tx_quantidadeParcelas1" styleClass="rotulo" value="Parcelas:"/>
                                                <!--Parcela Referente-->
                                                <ice:inputText binding="#{view$ContasAPagar.campoParcelas}" onkeypress="mascara(this,soNumeros)" id="campoParcelas" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt"/>
                                                <!-- Finalizar Data Emissao -->
                                                <ice:outputLabel id="tx_parcelaReferente" styleClass="rotulo" value="Parcela Referente: "/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoParcelaReferente}" id="campoParcelaReferente"
                                                    partialSubmit="true" styleClass="entradaTxt"/>
                                                <ice:outputLabel id="tx_dataEmissao" styleClass="rotulo" value="Data de Emissão: "/>
                                                <ice:selectInputDate binding="#{view$ContasAPagar.dataEmissao}" id="dataEmissao"
                                                    inputTitle="Data de Realização do Orçamento." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt" value="#{view$ContasAPagar.selectInputDate1Bean.date1}"/>
                                                <ice:outputLabel id="tx_valorTotalNota1" styleClass="rotulo" value="Total Nota:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoValorTotalNota1}" id="campoValorTotalNota1"
                                                    partialSubmit="true" readonly="true" onkeypress="mascara(this,valor)" styleClass="entradaTxt"/>
                                                <ice:outputLabel id="tx_situacao" styleClass="rotulo" value="Situação:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoSituacaoNf}" id="campoSituacaoNf" partialSubmit="true" styleClass="entradaTxt"/>
                                                <ice:commandButton action="#{view$ContasAPagar.botaoPargarNf_action}"
                                                    binding="#{view$ContasAPagar.botaoPargarNf}" id="botaoPargarNf" styleClass="rotulo" value="Pagar Parcela"/>
                                            </ice:panelLayout>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <ice:panelTab binding="#{view$ContasAPagar.aba02}" id="aba02" label="Contas">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutB1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--ID -->
                                                <ice:outputLabel binding="#{view$ContasAPagar.codConta}" id="codConta" styleClass="rotulo" value="Cód."/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoCodigoConta}" id="campoCodigoConta" readonly="true" styleClass="entradaTxt"/>
                                                <!-- Descrição -->
                                                <ice:outputLabel id="descricao" styleClass="rotulo" value="Descrição:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoDescricao}" id="campoDescricao" styleClass="entradaTxt"/>
                                                <!-- Valor da conta -->
                                                <ice:outputLabel id="valorConta" styleClass="rotulo" value="Valor:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoValConta}" id="campoValConta" onkeypress="mascara(this,valor);" styleClass="entradaTxt"/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutB2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!-- Vencimento -->
                                                <!-- Situação -->
                                                <ice:outputLabel id="dataVencimento" styleClass="rotulo" value="Data de Vencimento: "/>
                                                <ice:selectInputDate binding="#{view$ContasAPagar.dataVencimento1}" id="dataVencimento1"
                                                    inputTitle="Data de Vencimento da Conta." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt" value="#{view$ContasAPagar.selectInputDateBean8.date1}"/>
                                                <ice:outputLabel id="situacao" styleClass="rotulo" value="Situação:"/>
                                                <ice:inputText binding="#{view$ContasAPagar.campoSituacao}" id="campoSituacao" readonly="true" styleClass="entradaTxt"/>
                                                <ice:commandButton action="#{view$ContasAPagar.botaoPagarConta_action}"
                                                    binding="#{view$ContasAPagar.botaoPagarConta}" id="botaoPagarConta" styleClass="rotulo" value="Pagar Conta"/>
                                                <ice:commandButton action="#{view$ContasAPagar.botaoNovaConta_action}"
                                                    binding="#{view$ContasAPagar.botaoNovaConta}" id="botaoNovaConta" styleClass="rotulo" value="Nova Conta"/>
                                            </ice:panelLayout>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                    <ice:panelPopup autoCentre="true" binding="#{view$ContasAPagar.panelPopup}" draggable="true" id="panelPopup" modal="true"
                        style="left: 400px; top: 448px; position: absolute" styleClass="jpopup" visible="#{view$BuscarNotaFiscal.panelPopup1Bean.showModalPanel}">
                        <f:facet name="header">
                            <ice:outputText id="outputText14" value="Atenção"/>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                    <ice:outputText binding="#{view$ContasAPagar.textoPopUp}" id="textoPopUp" value="body text"/>
                                </ice:panelLayout>
                                <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                    <ice:commandButton action="#{view$ContasAPagar.btnPopUp1_action}" binding="#{view$ContasAPagar.btnPopUp1}" id="btnPopUp1" value="submit"/>
                                    <ice:commandButton action="#{view$ContasAPagar.btnPopUp2_action}" binding="#{view$ContasAPagar.btnPopUp2}" id="btnPopUp2" value="submit"/>
                                </ice:panelLayout>
                            </ice:panelGroup>
                        </f:facet>
                    </ice:panelPopup>
                    <!-- POP UP CONTAS -->
                    <ice:panelPopup binding="#{view$ContasAPagar.panelPopupConta}" draggable="true" id="panelPopupConta" modal="true" style="display: block; left: 936px; top: 336px; position: absolute; width: 382px">
                        <f:facet name="header">
                            <ice:panelGrid id="panelGrid1" style="display:block;width:180px;height:20px;">
                                <ice:outputText id="outputText7" value="Cadastrar Conta"/>
                            </ice:panelGrid>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGrid id="panelGrid2" style="display:block;width:180px;">
                                <ice:outputLabel id="tx_codigoConta" styleClass="rotulo" value="Cód."/>
                                <ice:inputText binding="#{view$ContasAPagar.campoCodigoConta1}" id="campoCodigoConta1" readonly="true" styleClass="entradaTxt"/>
                                <ice:outputLabel id="tx_dataVencimentoPopUp" styleClass="rotulo" value="Data Vencimento"/>
                                <ice:selectInputDate binding="#{view$ContasAPagar.dataVencimentoPopUp}" converter="#{view$ContasAPagar.sqlDateConverter1}"
                                    id="dataVencimentoPopUp" inputTitle="Data de Emissao da Conta" partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt" value="#{view$ContasAPagar.selectInputDateBean9.date1}"/>
                                <ice:outputLabel id="tx_descricaoConta" styleClass="rotulo" value="Descrição"/>
                                <ice:inputText binding="#{view$ContasAPagar.campoDescricaoConta}" id="campoDescricaoConta" styleClass="entradaTxt"/>
                                <ice:outputLabel id="tx_valorConta" styleClass="rotulo" value="Valor"/>
                                <ice:inputText binding="#{view$ContasAPagar.campoValorConta}" id="campoValorConta" onkeypress="mascara(this,valor);" styleClass="entradaTxt"/>
                                <ice:commandButton action="#{view$ContasAPagar.btn_cadastrarConta_action}" id="btn_cadastrarConta" value="Cadastrar"/>
                                <ice:commandLink action="#{view$ContasAPagar.link_cancelarConta_action}" id="link_cancelarConta" value="Cancelar"/>
                            </ice:panelGrid>
                        </f:facet>
                    </ice:panelPopup>
                    <!-- Fim do PopUp Contas -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
        <!-- Submeter-->
    </f:view>
</jsp:root>
